package com.zzl.car.controller;

import com.zzl.car.context.ZdpJwtUserContext;
import com.zzl.car.entity.LoveCarScore;
import com.zzl.car.entity.User;
import com.zzl.car.service.LoveCarScoresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class ZdpLoveCarScoreController {
    @Autowired
    private LoveCarScoresService loveCarScoresService;

    @GetMapping("/getLoveCarScoreDiscount")
    public double getLoveCarScoreDiscount(){
        return loveCarScoresService.getLoveCarScoreDiscount();
    }

    @GetMapping("/getLoveCarScore")
    public Map<String,Object> getLovaCarScore() {
        return loveCarScoresService.getLovaCarScore();
    }
}
